package com.dl.live.entity;

public class WebResDTO {

    //成功的响应码
    public static final int SUCCESS_CODE = 200;
    //失败的响应码
    public static final int ERROR_CODE = 500;


    private int code =0;

    private Object data;

    public Object getData() {
        return data;
    }

    public void setData(Object data) {
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public WebResDTO(int code, Object data) {
        this.data = data;
        this.code = code;
    }

    @Override
    public String toString() {
        return "WebResDTO{" +
                "code=" + code +
                ", data=" + data +
                '}';
    }
}
